const clear = require("clear");
const chalk = require("chalk");
const figlet = require("figlet");
const depcheck = require("depcheck");
const switchQuestions = require("./switchQuestions.js");
const config = require("./package.json");
clear();
console.log(
  chalk.blueBright.bold(
    figlet.textSync("Env Switch", { horizontalLayout: "full" })
  )
);
const options = {
  ignoreBinPackage: false, // ignore the packages with bin entry
  skipMissing: false, // skip calculation of missing dependencies
  ignorePatterns: [
    // files matching these patterns will be ignored
    "sandbox",
    "dist",
    "bower_components"
  ],
  ignoreMatches: [
    // ignore dependencies that matches these globs
    "grunt-*"
  ],
  parsers: {
    // the target parsers
    "**/*.js": depcheck.parser.es6,
    "**/*.jsx": depcheck.parser.jsx
  },
  detectors: [
    // the target detectors
    depcheck.detector.requireCallExpression,
    depcheck.detector.importDeclaration
  ],
  specials: [
    // the target special parsers
    depcheck.special.eslint,

    depcheck.special.webpack
  ],
  package: {
    // may specify dependencies instead of parsing package.json
    dependencies: config.dependencies,
    devDependencies: config.devDependencies,
    peerDependencies: {},
    optionalDependencies: {}
  }
};
console.log(chalk.cyanBright("\n 选择需要的环境"));
// console.log(config.dependencies);
// Module Question

switchQuestions();
